package com.starlink.model.dtomapper;

import com.starlink.model.domain.FreeCarryModeDO;
import com.starlink.model.request.FreeCarryModeRequest;
import com.starlink.model.vo.FreeCarryModeVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface FreeCarryModeDtoMapper {

    FreeCarryModeDtoMapper INSTANCE = Mappers.getMapper(FreeCarryModeDtoMapper.class);

    /**
    * DO to VO
    * @param freeCarryModeDO
    * @return
    */
    FreeCarryModeVO do2VO(FreeCarryModeDO freeCarryModeDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    FreeCarryModeDO request2DO(FreeCarryModeRequest request);
}
